<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-on的参数问题</title>
</head>
<body>



<div id="app">
  <button @click="btn1">按钮1</button>
  <button @click="btn2">按钮2</button>
  <button @click="btn3(123, $event)">按钮3</button>
  <button>按钮4</button>
  <button>按钮5</button>
</div>


<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: '你好'
    },
    methods: {
      btn1() {
        console.log("btn1");
      },
      btn2(event) {
        console.log("----------------", event);
      },
      btn3(abc, event) {
        console.log(abc, event);
      }

    }
  })
</script>

</body>
</html>
